<!--[pnpageaddvar name="javascript" value="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"]-->
<!--[pnpageaddvar name="javascript" value="modules/HotelBooking/pnjavascript/datepicker/development-bundle/ui/jquery.ui.datepicker.js"]-->
<!--[pnpageaddvar name="javascript" value="modules/HotelBooking/pnjavascript/datepicker/development-bundle/ui/jquery.ui.core.js"]-->
<!--[pnpageaddvar name="javascript" value="modules/HotelBooking/pnjavascript/datepicker/development-bundle/ui/jquery.ui.widget.js"]-->

<!--[pnpageaddvar name="stylesheet" value="modules/HotelBooking/pnjavascript/datepicker/development-bundle/themes/base/jquery.ui.all.css"]-->

<script type="text/javascript">
	$(function() {
      $("#date_picker1").datepicker({
        changeMonth: true,
        changeYear: true,
		yearRange: '1900:<!--[$smarty.now|date_format:"%Y"]-->',
		altFormat: 'yy-mm-dd',
		dateFormat: 'yy-mm-dd',
		appendText: '(yyyy-mm-dd)'
    });
  });
  
  $(function() {
      $("#date_picker2").datepicker({
        changeMonth: true,
        changeYear: true,
		yearRange: '1900:<!--[$smarty.now|date_format:"%Y"]-->',
		altFormat: 'yy-mm-dd',
		dateFormat: 'yy-mm-dd',
		appendText: '(yyyy-mm-dd)'
    });
  });
</script>

<div id="stylized-form">
	<h2><!--[gt text='Hotel Seasons Form Admin']--></h2>
	<form method="post" action="<!--[pnmodurl modname=hotelbooking type=adminform func=submit ctrl=hotelseason]-->">
  <input name="form[id]" type="hidden" size="40" value="<!--[$smarty.get.id]-->" />	
	<div class="wrapper-block">
		<label for="user">
			<!--[gt text='Name']-->
		</label>
		<input name="form[name]" type="text" size="40" value="<!--[$form.name]-->" />
	</div>
  <div class="wrapper-block">
		<label for="user">
			<!--[gt text='Description']-->
		</label>
		<input name="form[description]" type="text" size="40" value="<!--[$form.description]-->" />
	</div>  
  <div class="wrapper-block">
		<label for="user">
			<!--[gt text='Date start']-->
		</label>
		<INPUT TYPE="text" NAME="form[date_start]" value="<!--[$form.date_start]-->" ROWS="10" COLS="40" id="date_picker1" >
	</div>
  <div class="wrapper-block">
		<label for="user">
			<!--[gt text='Date end']-->
		</label>
		<INPUT TYPE="text" NAME="form[date_end]" value="<!--[$form.date_end]-->" ROWS="10" COLS="40" id="date_picker2" >
	</div>   
	<div class="wrapper-block">
		<label for="user">
			<!--[gt text='Hotel']-->
		</label>
		<!--[selector_object_array_ex modname=HotelBooking class=UserHotelmember name=form[hotelMember_id] selectedValue=$form.hotelMember_id displayField=hotelName]-->
	</div>   
	<input type="submit" value="submit">
	</form>
</div>